package com.cetc.operate.log.config;

import com.cetc.operate.audit.aspect.OperateAuditAspect;
import com.cetc.operate.audit.recorder.DefaultRecorder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@ComponentScan("com.cetc.operate.log")
@EnableAspectJAutoProxy
@Configuration
public class Config {
    @Bean
    public OperateAuditAspect operateAuditAspect() {
        return new OperateAuditAspect();
    }

    @Bean
    public DefaultRecorder defaultRecorder() {
        return new DefaultRecorder();
    }
}
